module SitesHelper
  def check_session_set_neighbor(site)
    if session[:site_set_neighbor].nil?
      false
    else
      session[:site_set_neighbor].include?(site.id)
    end
  end
  
  def check_site_vote(site)
    if session[:site_vote].nil?
      false
    else
      session[:site_vote].include?(site.id)
    end
  end
end
